import {getUserProfile} from "../../utils/asyncWx"
// 语法转换的包
import regeneratorRuntime from '../../lib/runtime/runtime';
Page({
  getUserProfile(e){
    wx.getUserProfile({
      desc: '获取用户信息', //不写不弹提示框
      success:(res) =>{
        const {userInfo} = res;
        wx.setStorageSync("userInfo",userInfo);
        wx.navigateBack({
          delta: 1 
         });
      }
    })  
  }
})